<!DOCTYPE html>
<html class="am-touch js cssanimations">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>活动新</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="renderer" content="webkit" />
    <link rel="stylesheet" href="./assets/css/ticket.css" />
    <style type="text/css">
        body,html{height: 100%;}
        #overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;opacity:0.65;filter:alpha(opacity=65);z-index:999;display: none;}
        #win{position:absolute; width: 100%; height: 100%;z-index:1001;display: none;}
        .menban{ background:#000;opacity:0.65;filter:alpha(opacity=65); }

        img{
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            max-width: 100%;
            height: auto;
            vertical-align: middle;
            border: 0;
        }

        .out{ display: none; }
        .okKonw{ width: 100%; overflow: hidden; }
    </style>
</head>
<body>
<!-- 蒙版图层 -->
<div id="overlay">
</div>
<div id="win">
    <img class="okKonw" src="./assets/i/mo.png" alt=""/>
</div>

<!-- 8元，代金券 -->
<section class="ticket-info ">
    <div class="graph-container">
        <img class="background" src="./assets/i/tyq2.png" alt="">
        <div class="text">
            <div class="amount">8</div>
        </div>
    </div>
    <h1>恭喜您获得<span>8元</span>洗车代金券！</h1>
    <p>精洗费时价高不够亮，快快省时价低还打蜡</p>
    <div class="actions">
        <a class="btn btn-primary">关注公众号体验</a>
    </div>

    <div class="remark">体验券可在快快车生活微信公众号中下单使用</div>
    <div class="bottom"><img src="assets/i/bottom_logo.png"></div>
</section>

<!-- 10元，代金券 -->
<section class="ticket-info double out">
    <div class="graph-container">
        <img class="background" src="./assets/i/tyq2.png" alt="">
        <div class="text">
            <div class="amount">10</div>
        </div>
    </div>
    <h1>恭喜您获得<span>10元</span>洗车代金券！</h1>
    <p>精洗费时价高不够亮，快快省时价低还打蜡</p>
    <div class="actions">
        <a class="btn btn-primary">关注公众号体验</a>
    </div>

    <div class="remark">体验券可在快快车生活微信公众号中下单使用</div>
</section>

<!-- 68元，体验券 -->
<section class="ticket-info other out">
    <div class="graph-container">
        <img class="background" src="./assets/i/tyq1.png" alt="">
        <div class="text">
            <div class="amount">68</div>
        </div>
    </div>
    <h1>恭喜您获得<span>68元</span>洗车体验券！</h1>
    <p>精洗费时价高不够亮，快快省时价低还打蜡</p>
    <div class="actions">
        <a class="btn btn-primary">关注公众号体验</a>
    </div>

    <div class="remark">体验券可在快快车生活微信公众号中下单使用</div>
</section>

<!-- 陛下，活动已经结束了 显示页面 -->
<section class="ticket-info out">
    <h1 style="font-size: 20px;">陛下，活动已经结束了！</h1>
    <div class="graph-container" style="margin: 30px 0;">
        <img class="background" src="./assets/i/cry.png" style="max-width:40%;" alt="">
    </div>
    <p>精洗费时价高不够亮，快快省时价低还打蜡</p>
    <div class="actions">
        <a class="btn btn-primary">关注公众号体验</a>
    </div>

    <div class="remark">体验券可在快快车生活微信公众号中下单使用</div>
</section>

<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function() {
        $('.actions .btn').on('click', function() {
            $('#overlay').css('display', 'block');
            $('#win').css('display', 'block');
        });

        $('.okKonw').on('click', function() {
            $('#overlay').css('display', 'none');
            $('#win').css('display', 'none');
        });

        function hengshuping(){
            if(window.orientation == 180 || window.orientation == 0){
                //alert("竖屏状态！");
                $('#overlay').css('height','100%');
                $('#win').css('height','100%');
                $('#win').removeClass('menban');
            }
            if(window.orientation == 90 || window.orientation == -90){
                //alert("横屏状态！");
                $('#overlay').css('height','auto');
                $('#win').css('height','auto');
                $('#win').addClass('menban');
            }
        }
        window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", hengshuping, false);
    });
</script>
</body>
</html>